const { Schema,model } = require("mongoose");
//设置数据集合的结构
const adminSchema = new Schema({
  adminName:String,
  password:String,
  power:Number,
  state:String,
  salesperson: {
    type: Schema.Types.ObjectId,
    ref: 'SalesPerson'
  },
},{versionKey:false});
//设置数据集合的模型
const Admin = model('Admin',adminSchema,'admin');
module.exports.Admin = Admin;